<?php 
header('Access-Control-Allow-Origin: *');
header("Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept");
header('Access-Control-Allow-Methods: GET, POST, PUT,DELETE');

$size=$_POST["size"] ? $_POST["size"] : 10;
$page=$_POST["page"] ? $_POST["page"] : 1;

$start=($page-1)*$size;
$end=$page*$size;
$arr=array("ok"=>1,"lists"=>array());

$rand=1;
if($rand!=0){
if($page==4){

	
	for($i=$start;$i<$end-5;$i++){
		
		$arr["lists"][]=array("status"=>mt_rand(0,7),"stxt"=>"待放款","sreason"=>"待放款","uname"=>"杨".($i+1));	

	}
}else{

	for($i=$start;$i<$end;$i++){
		$arr["lists"][]=array("status"=>mt_rand(0,7),"stxt"=>"待放款","sreason"=>"待放款","uname"=>"杨".($i+1));
	}
}
}


echo json_encode($arr);
?>